package com.tuanzi.loan.business.service.receipt.statistics;

import com.tuanzi.loan.business.entity.receipt.statistics.ReceiptRechargeOrder;
import com.tuanzi.loan.core.service.CommonService;

import java.util.Date;
import java.util.List;

public interface ReceiptRechargeOrderService extends CommonService<ReceiptRechargeOrder,Long> {

	/**
	 * 根据订单号查询借条充值订单
	 * @param orderId 订单号
	 * @return
	 */
	ReceiptRechargeOrder findLoanReceiptRechargeOrderByOrderId(String orderId);

	/**
	 * 用户某一时间段的订单信息
	 * @param userId
	 * @param startTime
	 * @param endTime
	 * @return
	 */
	List<ReceiptRechargeOrder> findByLoanReceiptSystemUserIdAndCreateTimeBetween(String userId, Date startTime, Date endTime);


	/**
	 * 查询某用户在时间段内已经完成的订单用户
	 * @param receiptUserId
	 * @param startTime
	 * @param endTime
	 * @return
	 */
	List<ReceiptRechargeOrder> findReceiptRechargeOrdersByLoanReceiptSystemUserIdAndPayTimeBetweenWhereIsDone(String receiptUserId, Date startTime, Date endTime);

}
